<?php
class error extends controller{
	public $error;

	public function __construct($url){
		parent::__construct($url);
	}
	
	public function check(){
		
	}

	public function run(){
		$this->error();
	}

	private function error(){
		if(empty($this->url[1])) $this->url[1] = null;
		switch($this->url[1]){
			case "404":
				$this->error = "Page not found:<br>".$this->path.$this->url[2];
				break;
			default:
				$this->error = "An unknown error occurred!";
				break;
		}
	}
}
?>
